#ifndef C11_T7_COMPLEX_H_   
#define C11_T7_COMPLEX_H_
#include <iostream>
class Complex
{
private:
	double real;
	double imag;

public:
	//Complex();
	Complex(double r=0.0, double imag=0.0);

	Complex operator + (const Complex & c) const;
	Complex operator - (const Complex & c) const;
	Complex operator * (const Complex & c) const;

	Complex operator * (double d) const;
	friend Complex operator * (double d, const Complex & c)	{ return c * d; }
	
	Complex operator ~ () const { return Complex(real, -imag); }

	friend std::ostream & operator << (std::ostream & os, const Complex & c);
	friend bool operator >> (std::istream & is, Complex & c);

	~Complex();

};

#endif